home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13141 < prev    next >
Encoding:
Text File  |  1996-08-05  |  884 b   |  37 lines

  1. Path: prodigy.com!usenet
  2. From: MYCV33A@prodigy.com (Tony Stegall)
  3. Newsgroups: comp.lang.c++
  4. Subject: Printing commands for borland turbo c++
  5. Date: 24 Mar 1996 00:24:37 GMT
  6. Organization: Prodigy Services Company  1-800-PRODIGY
  7. Distribution: world
  8. Message-ID: <4j24o5$grg@useneta1.news.prodigy.com>
  9. NNTP-Posting-Host: innugap4-int.news.prodigy.com
  10. X-Newsreader: Version 1.2
  11.  
  12. how in the heck do you send the output of a code to the printer?
  13. for instance if i have this
  14.  
  15. #include <iostream.h>
  16. void main ()
  17. //variables
  18. char name[20];
  19. {
  20. cout<<"\nPlease enter your name";
  21. cin >>name;
  22.  
  23. //the next line is the line i want to send to the printer
  24.  
  25. cout <<"\nHello there " <<name;
  26. }
  27.  
  28. i thought it was the cprn command but i can't figure out how to use it. 
  29. please someone help me with this.  Please send your reply to 
  30. tstegall@prodigy.com
  31. thanks again.
  32.  
  33. -
  34.   TONY STEGALL  tstegall@prodigy.com
  35.  
  36.  
  37.